// 单例模式在TS中的应用
{
    var Axios_1 = /** @class */ (function () {
        function Axios() {
            // console.log('构造函数');
        }
        Axios.make = function () {
            if (this.instance === null) {
                console.log('创建实例');
                Axios.instance = new Axios();
            }
            return Axios.instance;
        };
        // 此时constructor无法在外部通过new调用
        Axios.instance = null;
        return Axios;
    }());
    var instance = Axios_1.make();
    Axios_1.make();
}
